home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Question!@#!
- Date: 15 Jan 1996 07:53 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <15JAN199607533289@erich.triumf.ca>
- References: <4dcejq$2un@venus.senecac.on.ca>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4dcejq$2un@venus.senecac.on.ca>, cweselak@learn.senecac.on.ca (Christian Weselak) writes...
- >
- >I have a very Simple question.. well, it should be simple for 'alot' of
- >you reading this newsgroup..
- >
- >anyways.
- >
- >I have created a program that asks THE users for his name, then writes it
- >to a file, the file is called name.txt..
- >
- >Evertime this program is executed, the file name.txt get's overwritten.
- >
- >How can i keep this file, name.txt, so that i can eventually have a
- >listing of all users who ran my program???
-
- You have to open the file in "update" mode:
-
- file = fopen("name.txt","a+");
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-
-
-
-
-
-
-
-
-
-